﻿using BaizeSpider.Browser.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartForm.NetJs
{
    public interface IFormTask
    {
        event EventHandler<OnStartEventArgs> OnStart;//执行表单启动事件

        event EventHandler<OnCompletedEventArgs> OnCompleted;//执行表单完成事件

        event EventHandler<OnErrorEventArgs> OnError;//执行表单出错事件
        //执行JS
        void ExeScript(string js);
        //执行JS并返回执行结果
        object ExeScriptResult(string js);
    }
}
